package com.zhiyou.service.impl;

import com.zhiyou.dao.ContractDao;
import com.zhiyou.model.Contract;
import com.zhiyou.service.ContractService;

import java.util.HashMap;
import java.util.List;

public class ContractServiceImpl implements ContractService {
    ContractDao c=new ContractDao();
    @Override
    public int getContractNum(HashMap<String,String> keywordMap) {
        return c.getContractNum(keywordMap);
    }

    @Override
    public List<Contract> getContract(int pageNoC, int pageSize,HashMap<String,String> keywordMap) {
        return c.getContract(pageNoC,pageSize,keywordMap);
    }

    @Override
    public void deleteById(int cid) {
        c.deleteById(cid);
    }

    @Override
    public void addNew(String cnum, int chid, int clid, String ctime, String cstartTime, String cendTime, String ctotalMoney, int cpayType) {
        c.addNew(cnum,chid,clid,ctime,cstartTime,cendTime,ctotalMoney,cpayType);
    }

    @Override
    public Contract selectById(int cid) {
        return c.selectById(cid);
    }

    @Override
    public void updateNew(int cid, String cnum, int chid, int clid, String ctime, String cstartTime, String cendTime, String ctotalMoney, int cpayType) {
        c.updateNew(cid,cnum,chid,clid,ctime,cstartTime,cendTime,ctotalMoney,cpayType);
    }
}
